﻿@namespace ERP.BlazorUI
@inject NavigationManager Navigation
@inject IJSRuntime JSRuntime
@inject  IConfiguration   IConfiguration
 
@code {
    protected override void OnInitialized()
    {
     
        var identityServerUrl = IConfiguration["AuthServer:Authority"] ?? "";
         Navigation.NavigateTo($"{identityServerUrl}/account/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}", true);

        //  Navigation.NavigateTo($"{identityServerUrl}/account/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}", true);
      //   Navigation.NavigateTo($"{identityServerUrl}/authentication/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}", true);
      //  Navigation.NavigateTo($"https://localhost:44380/authentication/login", true);

     



    }
}
